#ifndef _IMAGE_CROP_CROPWITHPARAMS_
#define _IMAGE_CROP_CROPWITHPARAMS_

#include "../../../function.h"

namespace sp::Image::Crop{

void registe_cropWithInput();

/*
    crop大小在在输入
*/
class cropWithInput: public Function{
private:
    int cropWay;
    int cnt;
public:
    cropWithInput(std::vector<std::string> v);
    cropWithInput(int cropWay);
    cropWithInput();
    virtual ~cropWithInput();
    static void registe();
    static Function* createObject(std::vector<std::string> params);
    static Function* createObject2();
    virtual void start();
    virtual bool waitForResource();
    virtual void process(std::vector<std::vector<Data*>>& data_input, std::vector<Data*>& data_output);
    virtual bool releaseResource();
    virtual void finish();
    virtual void copy(Function* other);
};

};

#endif